<!DOCTYPE html PUBLIC 
	"-//W3C//DTD XHTML 1.1 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@taglib prefix="s" uri="/struts-tags"%>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><s:text name="search.title" /></title>
<s:head />
</head>

<body>
<table border="1" cellspacing="0" cellpadding="1">
	<tr>
		<th><s:text name="list.details" /></th>
		<th><s:text name="list.title" /></th>
		<th><s:text name="list.author" /></th>
		<th><s:text name="list.showUnits" /></th>
	</tr>
	<s:iterator value="resourceResult" status="rowstatus">
		<s:if test="#rowstatus.odd == true">
			<tr style="background: grey">
				<td><s:url id="details_resource" action="detailsResource" namespace="/search" includeParams="none">
						<s:param name="id" value="id"/>
					</s:url>
					<a href="${details_resource}"><s:text name="list.showDetails" /></a></td>
				<td><s:property value="makeTitle()" /></td>
				<td><s:property value="makeAuthor()" /></td>
				<td><s:url id="choose_unit" action="chooseUnit" namespace="/unit" includeParams="none">
						<s:param name="id" value="id"/>
					</s:url>
					<a href="${choose_unit}"><s:text name="list.showUnits" /></a></td>
			</tr>
		</s:if>
		<s:else>
			<tr>
				<td><s:url id="details_resource" action="detailsResource" namespace="/search" includeParams="none">
						<s:param name="id" value="id"/>
					</s:url>
					<a href="${details_resource}"><s:text name="list.showDetails" /></a></td>
				<td><s:property value="makeTitle()" /></td>
				<td><s:property value="makeAuthor()" /></td>
				<td><s:url id="choose_unit" action="chooseUnit" namespace="/unit" includeParams="none">
						<s:param name="id" value="id"/>
					</s:url>
					<a href="${choose_unit}"><s:text name="list.showUnits" /></a></td>
			</tr>
		</s:else>
	</s:iterator>
</table>
</body>
</html>